package com.a2.appa3.presenter.fragment;

import android.support.annotation.StringRes;

import com.a2.appa3.ui.fragment.BaseFragment;

/**
 * Created by Administrator on 2017/8/4.
 * FragmentPresenter基类
 * 构造基本逻辑与添加常用方法
 *
 * @param <T>
 */

public abstract class BaseFragmentPresenter<T extends BaseFragment> {
    T mFragment;

    BaseFragmentPresenter(T mFragment) {
        this.mFragment = mFragment;
    }


    /**
     * 从资源文件获取String
     *
     * @param stringRes
     * @return
     */
    String getString(@StringRes int stringRes) {
        return mFragment.getString(stringRes);
    }

}
